package ge.modules.events;

import ge.basicActors.Button;

public class ButtonEvent extends EventModule {

	private Button button;
	/**
	 * 
	 * @param id Id of the button
	 * @param button Object button
	 */
	public ButtonEvent(int id, Button button)
	{
		super();
		super.setId(id);
		this.button = button;
		attachMethod("buttonPressed");
	}
	

	/**
	 * @return True if the button is now pressed
	 */
	public boolean buttonPressed()
	{
		return button.buttonPressed();
	}
	
	@Override
	public void update() 
	{
	}

	@Override
	public void draw() {
		// TODO Auto-generated method stub

	}

}
